//
//
//  Created by LiuWenyang on 15/7/27.
//  Copyright (c) 2015年 KingVision. All rights reserved.
//


#define ScreenBound [[UIScreen mainScreen] bounds]
#define edgeZeroSelf make.edges.equalTo(self).insets(UIEdgeInsetsMake(0, 0, 0, 0))
#define edgeZeroSelfView make.edges.equalTo(self.view).insets(UIEdgeInsetsMake(0, 0, 0, 0))
#define integerString(x) [NSString stringWithFormat:@"%ld",x]

//是否为空或是[NSNull null]
#define NotNilAndNull(_ref)  (((_ref) != nil) && (![(_ref) isEqual:[NSNull null]]))
#define IsNilOrNull(_ref)   (((_ref) == nil) || ([(_ref) isEqual:[NSNull null]]))

//字符串是否为空
#define IsStrEmpty(_ref)    (((_ref) == nil) || ([(_ref) isEqual:[NSNull null]]) ||([(_ref)isEqualToString:@""]))
//数组是否为空
#define IsArrEmpty(_ref)    (((_ref) == nil) || ([(_ref) isEqual:[NSNull null]]) ||([(_ref) count] == 0))

#define avoidStringNil(_ref)  _ref = IsStrEmpty(_ref) ? @"" : _ref
